package com.cskaoyan.mapper;

import com.cskaoyan.bean.entity.Address;
import com.cskaoyan.bean.entity.Cart;
import com.cskaoyan.bean.entity.CartExample;
import com.cskaoyan.bean.entity.Carts;
import com.cskaoyan.bean.vo.WxCartGetCouponPriceAndLength;
import com.cskaoyan.bean.vo.WxExpress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartMapper {
    long countByExample(CartExample example);

    int deleteByExample(CartExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Cart record);

    int insertSelective(Cart record);

    List<Cart> selectByExample(CartExample example);

    List<Carts> selectByExample2(CartExample example);

    Cart selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Cart record, @Param("example") CartExample example);

    int updateByExample(@Param("record") Cart record, @Param("example") CartExample example);

    int updateByPrimaryKeySelective(Cart record);

    int updateByPrimaryKey(Cart record);

    Address selectUserInf(Integer userId);

    List<Carts> selectCartInf(Integer userId);

    WxCartGetCouponPriceAndLength selectUserCoupon(Integer couponId);

    WxExpress selectExpress();
}